<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <link
      rel="stylesheet"
      type="text/css"
      href="../assets/lib/layui/css/layui.css"
    />
  </head>
  <body>
    <div class="layui-card">
      <div class="layui-card-header">添加用户</div>
      <div class="layui-card-body">
        <!-- 添加用户表单 -->
        <form class="layui-form" action="">
          <!-- 用户名 -->
          <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-block">
              <input
                type="text"
                name="username"
                required
                lay-verify="required"
                placeholder="请输入用户名"
                autocomplete="off"
                class="layui-input"
              />
            </div>
          </div>
          <!-- 昵称 -->
          <div class="layui-form-item">
            <label class="layui-form-label">昵称</label>
            <div class="layui-input-block">
              <input
                type="text"
                name="nickname"
                required
                lay-verify="required"
                placeholder="请输入昵称"
                autocomplete="off"
                class="layui-input"
              />
            </div>
          </div>
          <!-- 密码 -->
          <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-block">
              <input
                type="password"
                name="password"
                required
                lay-verify="required|len"
                placeholder="请输入密码"
                autocomplete="off"
                class="layui-input"
              />
            </div>
          </div>
          <!-- 确认密码 -->
          <div class="layui-form-item">
            <label class="layui-form-label">确认密码</label>
            <div class="layui-input-block">
              <input
                type="password"
                required
                lay-verify="required|same"
                placeholder="请输入确认密码"
                autocomplete="off"
                class="layui-input"
              />
            </div>
          </div>
          <!-- 邮箱 -->
          <div class="layui-form-item">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-block">
              <input
                type="text"
                name="email"
                required
                lay-verify="required"
                placeholder="请输入邮箱"
                autocomplete="off"
                class="layui-input"
              />
            </div>
          </div>
          <!-- 提交按钮 -->
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="formDemo">
                立即提交
              </button>
              <button type="reset" class="layui-btn layui-btn-primary">
                重置
              </button>
            </div>
          </div>
        </form>
      </div>
    </div>
    <script src="../assets/lib/jquery.js"></script>
    <script src="../assets/js/common.js"></script>
    <script src="../assets/lib/layui/layui.all.js"></script>
    <script src="../assets/lib/template-web.js"></script>
    <script src="../assets/js/user/add.js"></script>
  </body>
</html>
